public class Main {

    public static void main(String[] args) {
        MyQueue queue =new MyQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);

        System.out.println(queue.poll());
        System.out.println(queue.peek());

        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.peek());

        System.out.println(queue.poll());
        System.out.println(queue.poll());
    }

    public static void main1(String[] args) {
        MinStack minStack =new MinStack();
        minStack.push(512);
        minStack.push(-1024);
        minStack.push(-1024);
        minStack.push(512);

        minStack.pop();
        System.out.println("最小值："+minStack.getMin());

        minStack.pop();
        System.out.println("最小值："+minStack.getMin());

        minStack.pop();
        System.out.println("最小值："+minStack.getMin());
    }
}